﻿using System;
using System.Threading.Tasks;
using Quartz;

namespace NetCoreQuartzDemo
{
    [QuartzSet("第四个计划任务", "myGroup", second: 40)]
    public class ThreeJob : Ibase
    {
        public Task Execute(IJobExecutionContext context)
        {
            return Task.Run(() =>
            {
                Console.WriteLine();
                Console.WriteLine($"<------------------ThreeJob------------------>每40秒执行一次【{DateTime.Now:HH:mm:ss}】");
                Console.WriteLine();
            });
        }
    }
}